import Vue from 'vue'

import Router from 'vue-router'
import Home from "../views/Home.vue"
import Reg from "../views/Reg.vue"
import My from "../views/My.vue"
import List from "../views/List.vue"
import GoodsDetail from "../views/GoodsDetail.vue"
import ShoppingCart from "../views/ShoppingCart.vue"
import Inc from "../views/Inc.vue"
import Incc from "../views/Incc.vue"
import Address from "../views/Address.vue"
import Sett from "../views/Sett.vue"
import Searchpro from "../views/Searchpro.vue"
// 把插件安装到vue来
Vue.use(Router)

export default new Router({
    routes: [{
        path: "/",
        component: Home
    }, {
        path: "/Reg",
        component: Reg
    }, {
        path: "/My",
        component: My
    }, {
        path: "/List",
        component: List
    }, {
        path: "/GoodsDetail/:good",
        component: GoodsDetail
    }, {
        path: "/ShoppingCart",
        component: ShoppingCart
    }, {
        path: "/Inc",
        component: Inc
    }, {
        path: "/Incc",
        component: Incc
    }, {
        path: "/Address",
        component: Address
    }, {
        path: "/Sett",
        component: Sett
    }, {
        path: "/Searchpro",
        component: Searchpro
    }, ]
});